//
//  HNSearchViewController.m
//  JHFBaseProject
//
//  Created by 朱传正 on 2016/12/15.
//  Copyright © 2016年 好牛. All rights reserved.
//

#import "HNSearchViewController.h"
#import "HNDoctorListViewController.h"
#import "HNDoctorDetailViewController.h"

@interface HNSearchViewController ()

@end

@implementation HNSearchViewController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    
    [self.navigationController setNavigationBarHidden:YES animated:NO];
    
    
}

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    
    [self.navigationController setNavigationBarHidden:NO animated:YES];
}


- (IBAction)backAction:(UIButton *)sender {

    [self.navigationController popViewControllerAnimated:YES];
}


- (IBAction)searchAction:(UIButton *)sender {
    if ([AppConfig isNULL:_searchText.text]) {
        [self showHint:@"请输入搜索条件"];
        return;
    }
    HNDoctorListViewController *listVC = [[HNDoctorListViewController alloc]init];
    listVC.title = @"医生列表";
    listVC.keyword = _searchText.text;
    [self.navigationController pushViewController:listVC animated:YES];
    
    
}


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
